package com.crhms.seabow.service;

import com.crhms.seabow.entity.Role;
import com.crhms.seabow.repository.RoleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleService {

    @Autowired
    private RoleRepository roleRepository;

    public Role getRoles(String roleId) {

        return roleRepository.selectById(roleId);
    }
}
